<script setup lang="ts">


//打开在线按钮客服聊天事件
function showMsg() {
  //打开聊天窗口
  window._MEIQIA('showPanel')
}

</script>

<template>
  <!-- 返回上级 -->
  <van-nav-bar title="聊天窗口" left-text="返回" left-arrow @click-left="$router.back" />

  <!-- 输入框 -->
  <van-cell-group inset>
    <van-field clearable left-icon="phone-o" placeholder="请输入" right-icon="smile-o " @click="showMsg" />
    <van-button icon="add-o"></van-button>
  </van-cell-group>
</template>

<style lang="scss" scoped>
.van-cell-group {
  position: fixed;
  bottom: 0px;
  display: flex;
  height: 58px;
  justify-content: center;
  align-items: center;

  .van-button {
    border: 0;
    height: 100%;
  }
}
</style>